

class OscQuestion {
	String authorPortrait;
	String author;
	int id;
	int viewCount;
	int authorId;
	String body;
	String title;
	int type;
	String pubDate;
	int commentCount;

	OscQuestion({this.authorPortrait, this.author, this.id, this.viewCount, this.authorId, this.body, this.title, this.type, this.pubDate, this.commentCount});

	OscQuestion.fromJson(Map<String, dynamic> json) {
		authorPortrait = json['authorPortrait'];
		author = json['author'];
		id = json['id'];
		viewCount = json['viewCount'];
		authorId = json['authorId'];
		body = json['body'];
		title = json['title'];
		type = json['type'];
		pubDate = json['pubDate'];
		commentCount = json['commentCount'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['authorPortrait'] = this.authorPortrait;
		data['author'] = this.author;
		data['id'] = this.id;
		data['viewCount'] = this.viewCount;
		data['authorId'] = this.authorId;
		data['body'] = this.body;
		data['title'] = this.title;
		data['type'] = this.type;
		data['pubDate'] = this.pubDate;
		data['commentCount'] = this.commentCount;
		return data;
	}
}
